﻿using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;

namespace FsAddInManager
{
	[Transaction(TransactionMode.Manual)]
	public class FsAddInManagerFaceless : IExternalCommand
	{
        public Result Execute(ExternalCommandData revit, ref string message, ElementSet elements)
        {
            StaticUtil.m_regenOption = RegenerationOption.Manual;
            StaticUtil.m_tsactMode = TransactionMode.Manual;
            return AIM.Instance.ExecuteCommand(revit, ref message, elements, true);
        }
	}
}
